/**
 * @Description: qinakun 生命周期函数
 *
 * @author: liuxiuqian
 *
 * @date: 2020/6/3
 */

import actions from "@/utils/globalStateActions"

export const qiankun = {
  // 应用加载之前
  async bootstrap(props) {
    console.log("应用加载之前")
    console.log('app1 bootstrap', props);
    if(props){
      actions.setActions(props.globalStateActions)
    }

  },
  // 应用 render 之前触发
  async mount(props) {
    console.log("应用 render 之前触发")
    console.log('app1 mount', props);
  },
  // 应用卸载之后触发
  async unmount(props) {
    console.log('app1 unmount', props);
  },
};
